/*    */ package eos.moe.dragoncore.mixins;
/*    */ 
/*    */ import eos.moe.dragoncore.bp;
/*    */ import eos.moe.dragoncore.interfaces.IBakedQuad;
/*    */ import net.minecraft.client.renderer.block.model.BakedQuad;
/*    */ import net.minecraft.client.renderer.block.model.BakedQuadRetextured;
/*    */ import net.minecraft.client.renderer.texture.TextureAtlasSprite;
/*    */ import org.spongepowered.asm.mixin.Final;
/*    */ import org.spongepowered.asm.mixin.Mixin;
/*    */ import org.spongepowered.asm.mixin.Shadow;
/*    */ 
/*    */ @Mixin({BakedQuad.class})
/*    */ public class MixinBakedQuad
/*    */   implements IBakedQuad
/*    */ {
/*    */   @Shadow
/*    */   @Final
/*    */   protected TextureAtlasSprite field_187509_d;
/*    */   private boolean quadEmissiveChecked;
/*    */   private BakedQuad quadEmissive;
/*    */   
/*    */   public BakedQuad getQuadEmissive() {
/* 23 */     if (this.quadEmissiveChecked) {
/* 24 */       return this.quadEmissive;
/*    */     }
/* 26 */     if (this.quadEmissive == null && this.field_187509_d != null && this.field_187509_d instanceof bp && ((bp)this.field_187509_d).g != null)
/*    */     {
/* 28 */       this.quadEmissive = (BakedQuad)new BakedQuadRetextured((BakedQuad)this, (TextureAtlasSprite)((bp)this.field_187509_d).g);
/*    */     }
/* 30 */     this.quadEmissiveChecked = true;
/* 31 */     return this.quadEmissive;
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\mixins\MixinBakedQuad.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */